﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<SDT.Site.ViewModels.ArticleListViewModel>" %>
<%@ Import Namespace="SDT.Lib.Helpers" %>
<div class="new_list">
    <%if (Model!=null && Model.Articles!=null)
    { %>
    <ul>
   	  <%foreach(var item in Model.Articles)
        {
         %>
   	    <li>
   	        <a href="/article/details/<%=item.ID %>/<%=Html.ToUrlFriendly(item.Title)%>">
                        <%=Html.Encode(item.Title) %>
                    </a>
   	       <%-- <%=Html.ActionLink(item.Title,"Details","Article",new{id=item.ID},new{}) %>--%>
   	        <div class="line_dot"></div>  
   	    </li>              
       <%} %>
    </ul>
  <%} %>
</div>

